<?php

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
	protected function _initView()
	{
		// Initialize view
		/* @var $view Zend_View */
		$view = new Zend_View();
		$view->Doctype('XHTML1_STRICT');
		
		// Add it to the ViewRenderer
		$viewRenderer = Zend_Controller_Action_HelperBroker::getStaticHelper('ViewRenderer');
		$viewRenderer->setView($view);
		
		return $view;
	}
	
	protected function _initHelperPaths()
	{
		$this->bootstrap('view');
		/* @var $view Zend_View */
		$view = $this->getResource('view');

		$view->addHelperPath('ZendX/JQuery/View/Helper', 'ZendX_JQuery_View_Helper');
		$view->addHelperPath('MyZendX/View/Helper', 'MyZendX_View_Helper');
		//$view->addHelperPath(APPLICATION_PATH . '/views/helpers', 'View_Helper');
		Zend_Controller_Action_HelperBroker::addPath('MyZendX/Controller/Action/Helper', 'MyZendX_Controller_Action_Helper');
		
		return; //$jQuery = $view->jQuery();
	}
}

